#include "AboutDialog.h"
#include <QGridLayout>
#include <QApplication>

AboutDialog::AboutDialog(QWidget *parent) :
    QDialog(parent)
{
    resize( 600, 200 );
    btnClose = new QPushButton( "Close" );
    lblInfo = new QLabel(this);
    lblInfo->setTextFormat(Qt::AutoText);
    lblInfo->setWordWrap(true);

    setWindowTitle( "About" );
    lblInfo->setText(QApplication::translate("AboutDialog", "\320\255\321\202\320\276 \320\265\321\211\320\265 \320\275\320\265 \321\204\320\270\320\275\320\260\320\273\321\214\320\275\320\260\321\217 \320\262\320\265\321\200\321\201\320\270\321\217 \321\200\320\265\320\264\320\260\320\272\321\202\320\276\321\200\320\260!!! \320\237\320\276\321\215\321\202\320\276\320\274\321\203 \320\262\321\201\320\265 \320\262\320\276\320\277\321\200\320\276\321\201\321\213 \320\270 \320\277\320\276\320\266\320\265\320\273\320\260\320\275\320\270\321\217 \320\276\321\202\320\277\321\200\320\260\320\262\320\273\321\217\320\271\321\202\320\265 \320\260\320\262\321\202\320\276\321\200\321\203 \320\277\321\200\320\276\320\263\321\200\320\260\320\274\320\274\321\213 l.slobodenik@pge-energo.ru", 0, QApplication::UnicodeUTF8));

    connect( btnClose, SIGNAL(clicked()), this, SLOT(close()) );

    QGridLayout *layout = new QGridLayout;
    layout->addWidget( lblInfo, 0, 0 );
    layout->addWidget( btnClose, 1, 0 );
    setLayout( layout );
}
